Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
{
setCookieJar(new CookieJar);
connect(this, &QNetworkAccessManager::authenticationRequired, this, [](QNetworkReply *reply, QAuthenticator *authenticator) {
+ Q_UNUSED(reply)
+
if (authenticator->user().isEmpty()) {
- qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user, aborting ...";
+ qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user";
authenticator->setUser(QUuid::createUuid().toString());
- reply->abort();
}
});
}